package simple.demo.springintegration.demo.chapter5.component;

import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.stereotype.Component;
import static java.lang.System.*;

@Component
public class MessageHandler {
	@ServiceActivator
	public String handleMessage(String message) {
		out.println("Received message : " + message);
		return "MESSAGE: " + message;
	}
}
